-- CALC_SKY_ACTIVITY_BONUS501
-- 计算天空活动501的积分奖励
-- @param bonusInfo        奖励信息
-- @param activityTimes    本次活动开放次数

return function(bonusInfo, activityTimes)
    local ret = {};
    local score = bonusInfo["score"];

    -- 冈布奥碎片：变异体3号、变异体2号、变异体1号、宇宙教父、变异体5号、变异体4号，循环
    local pet_chip;
    if activityTimes % 6 == 1 then
        pet_chip = 1707;
    elseif activityTimes % 6 == 2 then
        pet_chip = 1706;
    elseif activityTimes % 6 == 3 then
        pet_chip = 1705;
    elseif activityTimes % 6 == 4 then
        pet_chip = 1710;
    elseif activityTimes % 6 == 5 then
        pet_chip = 1709;
    else
        pet_chip = 1708;
    end

    local bonusList = {
        { {1,10000,150000}, {1,10017,15}, {1,pet_chip,120}, {1,10131,60}, },
        { {1,10000,120000}, {1,10017,14}, {1,pet_chip,110}, {1,10131,45}, },
        { {1,10000,100000}, {1,10017,13}, {1,pet_chip,100}, {1,10131,40}, },
        { {1,10000,80000}, {1,10017,12}, {1,pet_chip,90}, {1,10131,35}, },
        { {1,10000,60000}, {1,10017,11}, {1,pet_chip,80}, {1,10131,30}, },
        { {1,10000,50000}, {1,10017,10}, {1,pet_chip,70}, {1,10131,30}, },
        { {1,10000,45000}, {1,10017,9}, {1,pet_chip,60}, {1,10131,25}, },
        { {1,10000,40000}, {1,10017,8}, {1,pet_chip,45}, {1,10131,20}, },
        { {1,10000,35000}, {1,10017,7}, {1,pet_chip,30}, {1,10131,15}, },
        { {1,10000,30000}, {1,10017,6}, {1,pet_chip,20}, {1,10131,10}, },
        { {1,10000,25000}, {1,10017,5}, {1,pet_chip,10}, },
        { {1,10000,20000}, {1,10017,4}, },
        { {1,10000,15000}, {1,10017,3}, },
        { {1,10000,15000}, },
        { {1,10000,10000}, },
    };
    local scoreList = { 150000, 120000, 100000, 80000, 60000,
        50000, 45000, 40000, 35000, 30000,
        25000, 20000, 15000, 10000, 5000, };

    local index = 1;
    for _, num in pairs(scoreList) do
        if score >= num then
            break;
        end
        index = index + 1;
    end
    ret = bonusList[index] or {};

    return ret;
end
